package org.jbit.news.biz.impl;

import java.util.List;

import org.jbit.news.biz.TopicBiz;
import org.jbit.news.dao.TopicDao;
import org.jbit.news.dao.impl.TopicDaoImpl;
import org.jbit.news.entity.Topic;

public class TopicBizImpl implements TopicBiz{
	
	TopicDao topicDao = new TopicDaoImpl();
	public List<Topic> getAllTopics() {
		return topicDao.getAllTopics();
	}
	public int addToipc(String name) {
	
		return topicDao.addTopic(name);
	}
	public List<Topic> fingTopicByName(String name) {
		// TODO Auto-generated method stub
		return topicDao.fingTopicByName(name);
	}
	public int deleteTopic(int tid) {
		
		return topicDao.deleteTopic(tid);
	}
	public int updateTopic(Topic topic) {
		// TODO Auto-generated method stub
		return topicDao.updateTopic( topic);
	}
	

}
